package ufs;

import java.io.IOException;

import ufs.cmds.UFSCommandsConstants;
import ufs.file.UfsStream;

public class ufsd extends Thread{

	public static void main(String[] args) {

		System.out.println("s");

		
	UfsStream writer = new UfsStream("ciao");
		
		boolean exists = writer.exists();
		if(exists == true) {
			System.out.println( UFSCommandsConstants.FS_ALREADY_EXISTS );
			return;
		}
		
		boolean ret = writer.CreateFS();
		if(ret == false) {
			return;
		}
		
		// write Boot Sector
		writer.wInt(22);
		
	}

}
